package cn.fzkj.task.controller;

import cn.fzkj.task.service.AcyncService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AsyncController {

    @Autowired
    AcyncService acyncService;

    @GetMapping("hello")
    public String hello(){
        acyncService.hello();
        return "success";
    }

}
